package vip.liux.backend.application.service.coupon;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import vip.liux.application.dots.PagedResultRequestDto;
import vip.liux.contracts.shared.enums.Status;
import vip.liux.contracts.shared.enums.coupon.CouponType;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
public class QueryCouponDto extends PagedResultRequestDto {
    /**
     * 消费商品名称
     */
    private String couponName;

    /**
     * 优惠券类型 0立减券 1折扣券
     */
    private CouponType couponType;

    /**
     * 状态(0正常 1停止)
     */
    private Status status;

    /**
     * 领取开始时间
     */
    @NotNull
    private LocalDateTime receiveStart;

    /**
     * 领取截止时间
     */
    @NotNull
    private LocalDateTime receiveEnd;
}
